﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BaseAddIn.ProjectInfo
{
    [Serializable]
    public sealed class RuleList : List<Rule>
    {
        public Rule Contains(string nome)
        {
            Rule retorno = null;

            foreach (Rule rule in this)
            {
                if (rule.Name == nome)
                {
                    retorno = rule;
                    break;
                }
            }

            return retorno;
        }
    }
}
